<template>
	<view>
		<swiper class="swiperwrap" previous-margin="100rpx" next-margin="100rpx" :indicator-dots="true" :autoplay="true" :interval="6000" :duration="1000" :circular="true" @change="changes">
			<swiper-item v-for="(v,i) in list">
				<view class="swiper-item">
					<view class="swiper-itemin" :style="ind == i?'transform:scale(1.16)':''">
						
						<view class="swiper-itemins" :style="ind == i?'opacity:1':''">test{{i}}</view>
						
					</view>
				</view>
			</swiper-item>
		</swiper>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				//轮播
				list:[
					{image:require('../E5BLplaVoAQ3nl2.jpg'),title:324324324},
					{image:require('../E5BLplaVoAQ3nl2.jpg'),title:324324324},
					{image:require('../E5BLplaVoAQ3nl2.jpg'),title:324324324},
				],
				ind:0
			}
		},
		methods:{
			changes:function(e){
				this.ind = e.detail.current
			}
		}
	}
</script>

<style scoped>
	.swiperwrap {
		height: 200rpx;
		background-color: #ccc;
	}
	.swiper-item {
		height: 100%;
		background-color: #ccc;
		padding-left: 6%;
		padding-right: 6%;
	}
	.swiper-itemin {
		position: relative;
		margin: 15rpx 0% 0;
		height:170rpx;
		transition: 500ms;
		background-color: #E2E2E2;
	}
	.swiper-itemins {
		position: absolute;
		left: 40rpx;
		bottom: 40rpx;
		opacity: 0;
		transition: 300ms;
		transition-delay: 1000ms;
	}
</style>
